<template>
  <div>
    <a-button type="primary">1234</a-button>
  </div>
</template>

<script setup>
// mock-server模拟了这个test接口，当用yarn dev:mock启动项目的时候可以造假数据调
import { test } from 'Api/test'
import { onMounted } from 'vue';
import { useStore } from 'vuex'
const store = useStore()
onMounted(async () => {
  const res = await test()
  console.log(res);
  console.log(store);
  store.dispatch('HAHA', '二十牛二十羊外加俩腰子带走')
})
</script>

<style lang="less" scoped></style>